/* initOrder */
import {INIT_OREDER} from './mutations-types.js'
export default{
    state:{
        list:[],
        /* orderid_id:"" */ //get
        order_id : localStorage.getItem('tea_orderId') || ''//否者为空
    },
    mutations:{
        [INIT_OREDER]( state , orderId ){
            state.list = orderId;
            //console.log(orderId[0].order_id);
            //存储订单号
            state.orderid_id=orderId[0].order_id;
            //存储到本地存储中
            //设置一个id号
            localStorage.setItem('tea_orderId',orderId[0].order_id);//用？行不行state.orderid_id？

        }
    }
}